import request from '@/utils/request'


// 添加全球
export function addSearch(data) {
    return request({
        url: '/system/search',
        method: 'POST',
        data: data
    })
}
//删除
export function deleteSearch(id) {
    return request({
        url: '/system/search/' + id,
        method: 'DELETE',

    })
}
//获取列表
export function getSearchList() {
    return request({
        url: '/system/search/list',
        method: 'GET',
    })
}
//执行

export function getSearchExec(data) {
    return request({
        url: '/system/search/exec',
        method: 'GET',
        params: data
    })
}
//删除log文件
export function delSearchLog(data) {
    return request({
        url: '/system/search/deleteLog',
        method: 'GET',
        params: data
    })
}
//查看

export function getSearchCatLog(data) {
    return request({
        url: '/system/search/catLog',
        method: 'GET',
        params: data
    })
}

//刷新

export function getSearchRefresh(data) {
    return request({
        url: '/system/search/refresh',
        method: 'GET',
        params: data
    })
}